@include('layouts.Common.header')



<div class="col-12 _autoheight">
    <div class="card card-primary card-outline card-outline-tabs">
        <div class="card-header p-0 border-bottom-0">
            <ul class="nav nav-tabs" id="custom-tabs-four-tab" role="tablist">
                <li class="nav-item">
                    <a class="nav-link active" id="custom-tabs-four-home-tab" data-toggle="pill"
                        href="#custom-tabs-four-home" role="tab" aria-controls="custom-tabs-four-home"
                        aria-selected="false">用户信息</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" id="custom-tabs-four-profile-tab" data-toggle="pill"
                        href="#custom-tabs-four-profile" role="tab" aria-controls="custom-tabs-four-profile"
                        aria-selected="false">权限</a>
                </li>

            </ul>
        </div>
        <form class="row" name="actionForm" id="actionForm" method="post" autocomplete="off">
            @csrf

            <div class="card-body">
                <div class="tab-content" id="custom-tabs-four-tabContent">
                    <div class="tab-pane fade    active show" id="custom-tabs-four-home" role="tabpanel"
                        aria-labelledby="custom-tabs-four-home-tab">

                        <div class="form-group col-md-4  row">

                        </div>
                        <div class="form-group col-md-4  row">
                            <label class="col-sm-6 col-form-label text-right"><i>*</i>姓名：</label>
                            <input type="text" class="form-control col-sm-6" name=data[name] id="name"
                                value="{{ isset($gdata['name']) ? $gdata['name'] : '' }}" placeholder="">
                        </div>

                        <div class="form-group col-sm-4 row">
                            <label class="col-sm-6 control-label text-right"><i>*</i>邮箱：</label>
                            <input type="text" class="form-control col-sm-6" name=data[email] id="email" placeholder="">
                        </div>



                        <div class="form-group col-sm-4 row">
                            <label class="col-sm-6 control-label text-right">联系电话：</label>
                            <input type="text" class="form-control col-sm-6" name=data[mobile] id="mobile"
                                placeholder="">
                        </div>


                        <input type="dosubmit" id="dosubmit" name="dosubmit" hidden />

                    </div>
                    <div class="tab-pane fade" id="custom-tabs-four-profile" role="tabpanel"
                        aria-labelledby="custom-tabs-four-profile-tab">
                        <div class="nr-toolbar" id="jqgrid_toolbar" data-grid="jqgrid_items">
                        </div>
                        <div class="nr-grid">
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <!-- /.card -->
    </div>
</div>

{!! js('edit') !!}
<script>
    sy.defaults = {
        height: 600,
    }
    var fg = {!! json_encode($fg) !!};
    var toolbar = {!! json_encode($toolbar) !!};
    var items = {!! json_encode(isset($items) ? $items : []) !!};
    $(".nr-grid").initgridEdit(fg);
    $(".nr-toolbar").toolbarEdit({
        'toolbar': toolbar
    });
    if (items)
        $(".nr-toolbar").toolbarEdit("addRowData", items)
</script>
